# print O
print("#" * 9 + "\n" + ("#" + "\t" * 2 + "#" + "\n") * 3 + "#" * 9, end="\n"*2)

# print H
print(("#" + "\t" * 2 + "#" + "\n") * 2 + "#" * 9 + "\n" + ("#" + "\t" * 2 + "#" + "\n") * 2)
